package com.qzsoft.system.modules.permission.dept.dto;

import com.qzsoft.jeemis.common.utils.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;


/**
 * 机构树
 *
 * @author hzy
 * @since 2021-3-4 11:20:03
 */
@ApiModel(value = "机构树DTO")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class SysDeptTreeDto2 extends TreeNode<SysDeptTreeDto2> {

    @ApiModelProperty(value = "机构主键永不变")
    private String pkid;

    @ApiModelProperty(value = "机构id编码按照3位步长编码")
    private String id;

    @ApiModelProperty(value = "父节点编码")
    private String pid;

    @ApiModelProperty(value = "机构名称")
    private String name;

    @ApiModelProperty(value = "机构名称")
    private List<SysDeptTreeDto2> children;

}
